//
//  CycleScrollView.h
//  轮播scrollerView
//
//  Created by CheMiMacPro on 15/4/20.
//  Copyright (c) 2015年 CheMiMacPro. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    PageContolAlimentRight,
    PageContolAlimentCenter
} PageContolAliment;

@class CycleScrollView;
@protocol CycleScrollViewDelegate <NSObject>
- (void)cycleScrollView:(CycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index;
@end


@interface CycleScrollView : UIView

@property (nonatomic, strong) NSArray *imagesGroup;
@property (nonatomic, strong) NSArray *titlesGroup;
@property (nonatomic, assign) CGFloat scrollTimeInterval;
@property (nonatomic, assign) PageContolAliment pageControlAliment;
@property (nonatomic, weak) id<CycleScrollViewDelegate> delegate;

+ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imagesGroup:(NSArray *)imagesGroup;

@end
